#define  _CRT_SECURE_NO_WARNINGS 1

#include "String.h"

void TestString1()
{
	/*class zy::string s1("Hello World!");
	cout << s1.c_str() << endl;

	class zy::string s2 = s1;
	cout << s2.c_str() << endl;*/

	class zy::string s3 = "I Love China";
	for (int i = 0; i < s3.size(); ++i)
	{
		cout << s3[i] << " ";
	}
	cout << endl;

	zy::string::iterator it = s3.begin();
	while (it != s3.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;

	for (auto ch : s3)
	{
		cout << ch << " ";
	}
	cout << endl;

	for (auto ch : s3)
	{
		++ch;
		cout << ch << " ";
	}
	cout << endl;

}

int main()
{
	TestString1();


	return 0;
}